<?php
$mod=$_GET['mod'];
switch ($mod){
	case 'giohang':{

if(isset($_POST['cart'])){
        
    foreach ($_POST['cart'] as $key => $value) 
    {
        if($value > 0)
            $_SESSION['cart'][$key]['soluong'] = $value;
        else 
            unset($_SESSION['cart'][$key]);
    }
}
		require 'views/main/cart/cart.php';
		break;
	}
	
}

	
?>
